<extend name="Layout:layout_content" />
<block name="body_main">
    <taglib name="Common\TagLib\Sohtml"/>    
    <form action="{:AddonU('type_edit_save')}" method="post" class="xsui-form">
        <fieldset>
            <div class="xsui-form-field">
                <label>类型名称：</label>                
                <input type="text" name="title" placeholder="类型名称" value="{$data.title}" required="required" />
            </div>
            <div class="xsui-form-field">
                <label>备注：</label>
                <input type="text" name="remark" value="{$data.remark}" placeholder="备注" size="80" />
            </div>
            <div class="xsui-form-field">
                <label>状态：</label>
                <sohtml:radio name="status" items="1=正常;0=禁用" value="{$data.status|default=1}" required="required" />
            </div>
        </fieldset>
        <button type="submit"><i class="fa fa-save"></i>保存</button>
        <input type="hidden" name="id" value="{$data.id}"/>
    </form>
</block>